from tkinter import *


master=Tk()

group = LabelFrame(master,text='下面谁最帅？',padx=5,pady=5)
group.pack(fill=X,padx=10,pady=10)

v=IntVar()

list1 = ['1','2','3','4']
list2 = [1,2,3,4]
list3=list(zip(list1,list2))

def go():
    print(v.get())

for i,j in list3:
    Radiobutton(group,text=i,variable=v,value=j,command=go).pack(anchor=W)


mainloop()
